package com.weedsdream.app.floatWindow

import android.content.Intent
import androidx.activity.result.ActivityResultLauncher
import com.weedsdream.app.floatWindow.RequestPermissionLauncher.floatingWindow
import com.weedsdream.function.toast

/**权限申请回调，
 * 注意所有回调变量均需要在activity的onCreate中完成初始化
 * @property floatingWindow 悬浮窗*/
object RequestPermissionLauncher {
    var floatingWindow: ActivityResultLauncher<Intent>? = null

    /**权限申请回调逻辑：悬浮窗*/
    fun floatingWindowFunc() {
        FloatingWindowActivity.openFloatWindow {
            toast("未获取悬浮窗权限")
        }
    }
}